package com.waimai.controller;

import com.waimai.common.R;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
@RequestMapping("/user")
@Slf4j
public class UserController {

    @PostMapping("/login")
    public R<String> login(HttpServletRequest servletRequest, Long phone){

        log.info("手机号为"+phone);
        return R.success("1");
    }
}
